package com.guofen.service.sjq;

import com.guofen.pojo.SjqCompostProduceElectricity;
import com.guofen.pojo.SjqCompostProduceFault;

import java.util.Map;

public interface SjqCompostProduceFaultService {
    public boolean add(String inspectionId,
                       String equipmentName,
                       String faultTime,
                       String operator,
                       String faultContent,
                       String serviceTimeStart,
                       String serviceTimeEnd,
                       String servicemanInCharge,
                       String serviceman,
                       String faultReason,
                       String serviceMethod,
                       String proposer,
                       String recoverTime,
                       String inspector);

    public boolean addFrontPart(String equipmentName,
                                String faultTime,
                                String operator,
                                String faultContent);

    public boolean addAfterPart(Integer faultId,
                                String serviceTimeStart,
                                String serviceTimeEnd,
                                String servicemanInCharge,
                                String serviceman,
                                String faultReason,
                                String serviceMethod,
                                String proposer,
                                String recoverTime,
                                String inspector);

    public SjqCompostProduceFault getlast_day();

    public SjqCompostProduceFault getLastByEquipmentName(String equipmentName);

    public Map<String, Object> get(int pageSize, int currentPage);

    public Map<String, Object> getByTime(int pageSize, int currentPage, long startTime, long endTime);

    public int delete(int id);

    public int update(SjqCompostProduceFault record);

}
